package com.example.myshopping3.model.view;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 视图类，该类是针对特定视图而创建的类
 */
@Data
public class CommentView implements Serializable {
    private String commentId;
    private String userId;
    private String userName;
    private String bookId;
    private String commentMessage;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date createTime;
}
